package com.hxc.orangeyule.modle;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import org.json.JSONException;
import org.json.JSONObject;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/3/15.
 */
public class RecommendContent {

    /**
     * code : 1
     * msg : 操作成功
     * data : {"info":[{"id":54854,"urlroute":"juzi://specialreport?id=54854","title":"橘子315打假：假脸、假唱、假电影、假包......一网打尽","pic":"http://images11.app.happyjuzi.com/content/201603/15/56e7538b6fd83.jpg!ac2.nw.webp","icontype":0,"readnum":5777,"replynum":0,"cat":{"name":"生活"},"author":{"name":"程媛-橘子编辑"},"type":13},{"id":56484,"urlroute":"juzi://article/detail/native?id=56484","title":"娱乐早报 | 王凯向粉丝讨教吻戏技巧  范冰冰版潘金莲曝大尺度预告","pic":"http://images11.app.happyjuzi.com/news/201603/14/56e6da099297d.jpg!ac2.nw.webp","icontype":10,"readnum":6283,"replynum":26,"cat":{"name":"娱乐小报"},"author":{"name":"王子的喵-橘子编辑"}}],"list":[{"id":56496,"urlroute":"juzi://article/detail/native?id=56496","title":"315鸡汤打假：是汤三分毒，拒汤保智商！","pic":"http://images11.app.happyjuzi.com/news/201603/15/56e734e69214b.jpg!ac2.nw.webp","icontype":4,"type":10,"readnum":4728,"replynum":4,"cat":{"name":"生活"},"author":{"name":"仙人掌-橘子编辑"}},{"id":56494,"urlroute":"juzi://article/detail/native?id=56494","title":"3.15电影打假 | 骗人也请走点心，你当我们瞎吗？","pic":"http://images11.app.happyjuzi.com/news/201603/15/56e6f63102882.jpg!ac2.nw.webp","icontype":5,"type":10,"readnum":5040,"replynum":2,"cat":{"name":"影视"},"author":{"name":"胖虎-橘子编辑"}},{"id":56463,"urlroute":"juzi://article/detail/native?id=56463","title":"3·15打假 | 掉话筒、对口型、摔跟头，明星假唱简直花样百出！","pic":"http://images11.app.happyjuzi.com/news/201603/15/56e6f52646224.jpg!ac2.nw.webp","icontype":0,"type":10,"readnum":8767,"replynum":3,"cat":{"name":"八卦"},"author":{"name":"刘怂怂-橘子编辑"}},{"id":6140,"title":"每日星范|李冰冰 红色大衣搭配黄色手袋，美丽又大方","type":5,"grade":{"voteimg":{"src":"http://images11.app.happyjuzi.com/vote/201603/15/56e6e97bdbdb8.jpeg!ac2.nw.webp","width":600,"height":899},"myscore":0,"totalscore":253482,"members":3433},"cat":{"name":"影视"},"author":{"name":"鸭子-橘子编辑"}},{"id":56472,"urlroute":"juzi://article/detail/native?id=56472","title":"你的撩汉技能能打满分吗？","pic":"http://images11.app.happyjuzi.com/news/201603/14/56e6c590ed782.jpg!ac2.nw.webp","icontype":1,"publish_time":"刚刚","readnum":763,"replynum":0,"cat":{"name":"测试"},"author":{"name":"小丸子-橘子编辑"}},{"id":56503,"urlroute":"juzi://article/detail/native?id=56503","title":"高晓松又双叒叕发自拍了，这次我竟然觉得有点可爱...","pic":"http://images11.app.happyjuzi.com/news/201603/15/56e75d9197f9b.jpg!ac2.nw.webp","icontype":0,"publish_time":"10分钟前","readnum":781,"replynum":0,"cat":{"name":"八卦"},"author":{"name":"李哈哈-橘子编辑"}},{"id":56502,"urlroute":"juzi://article/detail/native?id=56502","title":"林允儿终于上快本了，穿着白纱裙简直美成仙！","pic":"http://images11.app.happyjuzi.com/news/201603/15/56e75bdf2effd.jpg!ac2.nw.webp","icontype":6,"publish_time":"10分钟前","readnum":6674,"replynum":1,"cat":{"name":"八卦"},"author":{"name":"皮皮-橘子编辑"}},{"id":56476,"urlroute":"juzi://article/detail/native?id=56476","title":"刘诗诗帅气大片这么穿，五套同款通通扒给你看！","pic":"http://images11.app.happyjuzi.com/news/201603/14/56e6c8c815206.jpg!ac2.nw.webp","icontype":0,"publish_time":"1小时前","readnum":2605,"replynum":6,"cat":{"name":"时尚"},"author":{"name":"seaya-橘子编辑"}},{"id":56424,"title":"这个滑板有点6","pic":"http://images11.app.happyjuzi.com!ac2.nw.webp","icontype":0,"txtlead":"","shareurl":"http://a.happyjuzi.com/2016/03/56424.html?d_source=mobile","type":11,"gif":[{"mp4":"http://images11.app.happyjuzi.com//content/mp4/56e690e57b08b.mp4","pic":"http://images11.app.happyjuzi.com/content/201603/14/56e690dccd141.gif!gif.webp","url":"http://images11.app.happyjuzi.com/content/201603/14/56e690dccd141.gif","thumb":"http://images11.app.happyjuzi.com/content/201603/14/56e690dccd141.gif!th.gif","thumb_jpg":"http://images11.app.happyjuzi.com/content/201603/14/56e690dccd141.gif!th.jpg","width":320,"height":214}],"author":{"name":"baozou"},"readnum":91,"replynum":4,"cat":{"name":"Gif"}},{"id":56499,"urlroute":"juzi://article/detail/native?id=56499","title":"47岁老爹同框像男友，妈妈像姐姐，这妹子一家的颜值早上天了！","pic":"http://images11.app.happyjuzi.com/news/201603/15/56e7500fa4174.jpg!ac2.nw.webp","icontype":5,"publish_time":"2小时前","readnum":24565,"replynum":2,"cat":{"name":"生活"},"author":{"name":"amy-橘子编辑"}},{"id":56493,"urlroute":"juzi://article/detail/native?id=56493","title":"【电影小报】《我不是潘金莲》范冰冰下乡演村妇，抖森露肉置社会秩序于不顾！","pic":"http://images11.app.happyjuzi.com/news/201603/15/56e6eb2df1ad6.jpg!ac2.nw.webp","icontype":8,"publish_time":"2小时前","readnum":5007,"replynum":0,"cat":{"name":"影视"},"author":{"name":"胖虎-橘子编辑"}},{"id":56413,"urlroute":"juzi://article/detail/native?id=56413","title":"【贱cry】如何反击别人说你矮","pic":"http://images11.app.happyjuzi.com/news/201603/14/56e68c15766f2.png!ac2.nw.webp","icontype":11,"publish_time":"2小时前","readnum":2412,"replynum":0,"cat":{"name":"贱CRY"},"author":{"name":"陈皮-橘子编辑"}},{"id":56480,"urlroute":"juzi://article/detail/native?id=56480","title":"打假！但我就是喜欢看宋仲基穿帮镜头的样子！","pic":"http://images11.app.happyjuzi.com/news/201603/14/56e6c9ab044af.png!ac2.nw.webp","icontype":2,"publish_time":"2小时前","readnum":3742,"replynum":0,"cat":{"name":"视频"},"author":{"name":"歪歪爱抚"}},{"id":56460,"urlroute":"juzi://article/detail/native?id=56460","title":"【看脸】贾斯汀比伯：全程不看脸，全程盯裆系列","pic":"http://images11.app.happyjuzi.com/news/201603/14/56e6a24f9571e.jpg!ac2.nw.webp","icontype":0,"publish_time":"2小时前","readnum":9562,"replynum":5,"cat":{"name":"看脸"},"author":{"name":"小脑发达-橘子编辑"}},{"id":56481,"urlroute":"juzi://article/detail/native?id=56481","title":"真是笑shi啦！连续看了5遍而已～看完别慌哈","pic":"http://images11.app.happyjuzi.com/news/201603/14/56e6decdc3bd0.jpg!ac2.nw.webp","icontype":11,"type":2,"src":"http://video01.app.happyjuzi.com/o_1adqsvh3r8tpc73vtq1ermc4s9.mp4","shareurl":"http://a.happyjuzi.com/2016/03/56481.html?d_source=mobile","publish_time":"03月14日","readnum":5872,"replynum":3,"cat":{"name":"视频"},"author":{"name":"哥斯达坤叔"}},{"id":56418,"urlroute":"juzi://article/detail/native?id=56418","title":"Ins大神把明星都捏成了娃娃，这逼真程度1500美刀哪够？","pic":"http://images11.app.happyjuzi.com/news/201603/14/56e68e65c3add.jpg!ac2.nw.webp","icontype":6,"publish_time":"2小时前","readnum":4110,"replynum":0,"cat":{"name":"生活"},"author":{"name":"amy-橘子编辑"}},{"id":56410,"urlroute":"juzi://article/detail/native?id=56410","title":"《青丘狐传说》 | 收视与槽点齐飞，他们神奇的灵气造型都在这啦！","pic":"http://images11.app.happyjuzi.com/news/201603/15/56e75a18db148.jpg!ac2.nw.webp","icontype":6,"publish_time":"2小时前","readnum":3752,"replynum":7,"cat":{"name":"时尚"},"author":{"name":"花达-橘子编辑 "}},{"id":56498,"urlroute":"juzi://article/detail/native?id=56498","title":"TOP为扔烟头事件公开道歉，知错就改，你怎么看？","pic":"http://images11.app.happyjuzi.com/news/201603/15/56e74f716751e.jpg!ac2.nw.webp","icontype":8,"publish_time":"2小时前","readnum":5986,"replynum":13,"cat":{"name":"八卦"},"author":{"name":"李哈哈-橘子编辑"}},{"id":56407,"urlroute":"juzi://article/detail/native?id=56407","title":"这么多年都被骗了！这些传说中的爆款根本不适合你好吗！","pic":"http://images11.app.happyjuzi.com/news/201603/14/56e6858244c82.gif!ac2.nw","icontype":5,"publish_time":"2小时前","readnum":4123,"replynum":5,"cat":{"name":"美妆急诊室"},"author":{"name":"Fiona-橘子编辑"}},{"id":56382,"urlroute":"juzi://article/detail/native?id=56382","title":"女神才有A4腰？橘子君去撩了全公司人的腰：结果太瞎!","pic":"http://images11.app.happyjuzi.com/news/201603/14/56e66b83175a0.jpg!ac2.nw.webp","icontype":8,"type":1,"publish_time":"2小时前","readnum":204740,"replynum":24,"cat":{"name":"生活"},"author":{"name":"白玛-橘子编辑"}},{"id":56484,"urlroute":"juzi://article/detail/web?id=56484","title":"娱乐早报 | 王凯向粉丝讨教吻戏技巧  范冰冰版潘金莲曝大尺度预告","pic":"http://images11.app.happyjuzi.com/news/201603/14/56e6da099297d.jpg!ac2.nw.webp","icontype":10,"publish_time":"3小时前","readnum":6283,"replynum":26,"cat":{"name":"娱乐小报"},"author":{"name":"王子的喵-橘子编辑"}},{"id":55950,"urlroute":"juzi://article/detail/native?id=55950","title":"【猜猜TA是谁】他是\u201c娱乐圈变革人物\u201d；偶像是莱昂纳多！","pic":"http://images11.app.happyjuzi.com/news/201603/15/56e6e7d730c4b.jpg!ac2.nw.webp","icontype":8,"publish_time":"3小时前","readnum":6497,"replynum":32,"cat":{"name":"你谁啊你"},"author":{"name":"李哈哈-橘子编辑"}},{"id":56471,"urlroute":"juzi://article/detail/native?id=56471","title":"【今天穿啥】穿个拼色大衣做个\u201c色\u201d女孩","pic":"http://images11.app.happyjuzi.com/news/201603/14/56e6b16fb984f.jpg!ac2.nw.webp","icontype":0,"publish_time":"3小时前","readnum":2640,"replynum":0,"cat":{"name":"今天穿啥"},"author":{"name":"Jane-橘子编辑"}}],"page":1,"ts":1458003995,"list_dels":[],"info_dels":[]}
     */

    private int code;
    private String msg;
    /**
     * info : [{"id":54854,"urlroute":"juzi://specialreport?id=54854","title":"橘子315打假：假脸、假唱、假电影、假包......一网打尽","pic":"http://images11.app.happyjuzi.com/content/201603/15/56e7538b6fd83.jpg!ac2.nw.webp","icontype":0,"readnum":5777,"replynum":0,"cat":{"name":"生活"},"author":{"name":"程媛-橘子编辑"},"type":13},{"id":56484,"urlroute":"juzi://article/detail/native?id=56484","title":"娱乐早报 | 王凯向粉丝讨教吻戏技巧  范冰冰版潘金莲曝大尺度预告","pic":"http://images11.app.happyjuzi.com/news/201603/14/56e6da099297d.jpg!ac2.nw.webp","icontype":10,"readnum":6283,"replynum":26,"cat":{"name":"娱乐小报"},"author":{"name":"王子的喵-橘子编辑"}}]
     * list : [{"id":56496,"urlroute":"juzi://article/detail/native?id=56496","title":"315鸡汤打假：是汤三分毒，拒汤保智商！","pic":"http://images11.app.happyjuzi.com/news/201603/15/56e734e69214b.jpg!ac2.nw.webp","icontype":4,"type":10,"readnum":4728,"replynum":4,"cat":{"name":"生活"},"author":{"name":"仙人掌-橘子编辑"}},{"id":56494,"urlroute":"juzi://article/detail/native?id=56494","title":"3.15电影打假 | 骗人也请走点心，你当我们瞎吗？","pic":"http://images11.app.happyjuzi.com/news/201603/15/56e6f63102882.jpg!ac2.nw.webp","icontype":5,"type":10,"readnum":5040,"replynum":2,"cat":{"name":"影视"},"author":{"name":"胖虎-橘子编辑"}},{"id":56463,"urlroute":"juzi://article/detail/native?id=56463","title":"3·15打假 | 掉话筒、对口型、摔跟头，明星假唱简直花样百出！","pic":"http://images11.app.happyjuzi.com/news/201603/15/56e6f52646224.jpg!ac2.nw.webp","icontype":0,"type":10,"readnum":8767,"replynum":3,"cat":{"name":"八卦"},"author":{"name":"刘怂怂-橘子编辑"}},{"id":6140,"title":"每日星范|李冰冰 红色大衣搭配黄色手袋，美丽又大方","type":5,"grade":{"voteimg":{"src":"http://images11.app.happyjuzi.com/vote/201603/15/56e6e97bdbdb8.jpeg!ac2.nw.webp","width":600,"height":899},"myscore":0,"totalscore":253482,"members":3433},"cat":{"name":"影视"},"author":{"name":"鸭子-橘子编辑"}},{"id":56472,"urlroute":"juzi://article/detail/native?id=56472","title":"你的撩汉技能能打满分吗？","pic":"http://images11.app.happyjuzi.com/news/201603/14/56e6c590ed782.jpg!ac2.nw.webp","icontype":1,"publish_time":"刚刚","readnum":763,"replynum":0,"cat":{"name":"测试"},"author":{"name":"小丸子-橘子编辑"}},{"id":56503,"urlroute":"juzi://article/detail/native?id=56503","title":"高晓松又双叒叕发自拍了，这次我竟然觉得有点可爱...","pic":"http://images11.app.happyjuzi.com/news/201603/15/56e75d9197f9b.jpg!ac2.nw.webp","icontype":0,"publish_time":"10分钟前","readnum":781,"replynum":0,"cat":{"name":"八卦"},"author":{"name":"李哈哈-橘子编辑"}},{"id":56502,"urlroute":"juzi://article/detail/native?id=56502","title":"林允儿终于上快本了，穿着白纱裙简直美成仙！","pic":"http://images11.app.happyjuzi.com/news/201603/15/56e75bdf2effd.jpg!ac2.nw.webp","icontype":6,"publish_time":"10分钟前","readnum":6674,"replynum":1,"cat":{"name":"八卦"},"author":{"name":"皮皮-橘子编辑"}},{"id":56476,"urlroute":"juzi://article/detail/native?id=56476","title":"刘诗诗帅气大片这么穿，五套同款通通扒给你看！","pic":"http://images11.app.happyjuzi.com/news/201603/14/56e6c8c815206.jpg!ac2.nw.webp","icontype":0,"publish_time":"1小时前","readnum":2605,"replynum":6,"cat":{"name":"时尚"},"author":{"name":"seaya-橘子编辑"}},{"id":56424,"title":"这个滑板有点6","pic":"http://images11.app.happyjuzi.com!ac2.nw.webp","icontype":0,"txtlead":"","shareurl":"http://a.happyjuzi.com/2016/03/56424.html?d_source=mobile","type":11,"gif":[{"mp4":"http://images11.app.happyjuzi.com//content/mp4/56e690e57b08b.mp4","pic":"http://images11.app.happyjuzi.com/content/201603/14/56e690dccd141.gif!gif.webp","url":"http://images11.app.happyjuzi.com/content/201603/14/56e690dccd141.gif","thumb":"http://images11.app.happyjuzi.com/content/201603/14/56e690dccd141.gif!th.gif","thumb_jpg":"http://images11.app.happyjuzi.com/content/201603/14/56e690dccd141.gif!th.jpg","width":320,"height":214}],"author":{"name":"baozou"},"readnum":91,"replynum":4,"cat":{"name":"Gif"}},{"id":56499,"urlroute":"juzi://article/detail/native?id=56499","title":"47岁老爹同框像男友，妈妈像姐姐，这妹子一家的颜值早上天了！","pic":"http://images11.app.happyjuzi.com/news/201603/15/56e7500fa4174.jpg!ac2.nw.webp","icontype":5,"publish_time":"2小时前","readnum":24565,"replynum":2,"cat":{"name":"生活"},"author":{"name":"amy-橘子编辑"}},{"id":56493,"urlroute":"juzi://article/detail/native?id=56493","title":"【电影小报】《我不是潘金莲》范冰冰下乡演村妇，抖森露肉置社会秩序于不顾！","pic":"http://images11.app.happyjuzi.com/news/201603/15/56e6eb2df1ad6.jpg!ac2.nw.webp","icontype":8,"publish_time":"2小时前","readnum":5007,"replynum":0,"cat":{"name":"影视"},"author":{"name":"胖虎-橘子编辑"}},{"id":56413,"urlroute":"juzi://article/detail/native?id=56413","title":"【贱cry】如何反击别人说你矮","pic":"http://images11.app.happyjuzi.com/news/201603/14/56e68c15766f2.png!ac2.nw.webp","icontype":11,"publish_time":"2小时前","readnum":2412,"replynum":0,"cat":{"name":"贱CRY"},"author":{"name":"陈皮-橘子编辑"}},{"id":56480,"urlroute":"juzi://article/detail/native?id=56480","title":"打假！但我就是喜欢看宋仲基穿帮镜头的样子！","pic":"http://images11.app.happyjuzi.com/news/201603/14/56e6c9ab044af.png!ac2.nw.webp","icontype":2,"publish_time":"2小时前","readnum":3742,"replynum":0,"cat":{"name":"视频"},"author":{"name":"歪歪爱抚"}},{"id":56460,"urlroute":"juzi://article/detail/native?id=56460","title":"【看脸】贾斯汀比伯：全程不看脸，全程盯裆系列","pic":"http://images11.app.happyjuzi.com/news/201603/14/56e6a24f9571e.jpg!ac2.nw.webp","icontype":0,"publish_time":"2小时前","readnum":9562,"replynum":5,"cat":{"name":"看脸"},"author":{"name":"小脑发达-橘子编辑"}},{"id":56481,"urlroute":"juzi://article/detail/native?id=56481","title":"真是笑shi啦！连续看了5遍而已～看完别慌哈","pic":"http://images11.app.happyjuzi.com/news/201603/14/56e6decdc3bd0.jpg!ac2.nw.webp","icontype":11,"type":2,"src":"http://video01.app.happyjuzi.com/o_1adqsvh3r8tpc73vtq1ermc4s9.mp4","shareurl":"http://a.happyjuzi.com/2016/03/56481.html?d_source=mobile","publish_time":"03月14日","readnum":5872,"replynum":3,"cat":{"name":"视频"},"author":{"name":"哥斯达坤叔"}},{"id":56418,"urlroute":"juzi://article/detail/native?id=56418","title":"Ins大神把明星都捏成了娃娃，这逼真程度1500美刀哪够？","pic":"http://images11.app.happyjuzi.com/news/201603/14/56e68e65c3add.jpg!ac2.nw.webp","icontype":6,"publish_time":"2小时前","readnum":4110,"replynum":0,"cat":{"name":"生活"},"author":{"name":"amy-橘子编辑"}},{"id":56410,"urlroute":"juzi://article/detail/native?id=56410","title":"《青丘狐传说》 | 收视与槽点齐飞，他们神奇的灵气造型都在这啦！","pic":"http://images11.app.happyjuzi.com/news/201603/15/56e75a18db148.jpg!ac2.nw.webp","icontype":6,"publish_time":"2小时前","readnum":3752,"replynum":7,"cat":{"name":"时尚"},"author":{"name":"花达-橘子编辑 "}},{"id":56498,"urlroute":"juzi://article/detail/native?id=56498","title":"TOP为扔烟头事件公开道歉，知错就改，你怎么看？","pic":"http://images11.app.happyjuzi.com/news/201603/15/56e74f716751e.jpg!ac2.nw.webp","icontype":8,"publish_time":"2小时前","readnum":5986,"replynum":13,"cat":{"name":"八卦"},"author":{"name":"李哈哈-橘子编辑"}},{"id":56407,"urlroute":"juzi://article/detail/native?id=56407","title":"这么多年都被骗了！这些传说中的爆款根本不适合你好吗！","pic":"http://images11.app.happyjuzi.com/news/201603/14/56e6858244c82.gif!ac2.nw","icontype":5,"publish_time":"2小时前","readnum":4123,"replynum":5,"cat":{"name":"美妆急诊室"},"author":{"name":"Fiona-橘子编辑"}},{"id":56382,"urlroute":"juzi://article/detail/native?id=56382","title":"女神才有A4腰？橘子君去撩了全公司人的腰：结果太瞎!","pic":"http://images11.app.happyjuzi.com/news/201603/14/56e66b83175a0.jpg!ac2.nw.webp","icontype":8,"type":1,"publish_time":"2小时前","readnum":204740,"replynum":24,"cat":{"name":"生活"},"author":{"name":"白玛-橘子编辑"}},{"id":56484,"urlroute":"juzi://article/detail/web?id=56484","title":"娱乐早报 | 王凯向粉丝讨教吻戏技巧  范冰冰版潘金莲曝大尺度预告","pic":"http://images11.app.happyjuzi.com/news/201603/14/56e6da099297d.jpg!ac2.nw.webp","icontype":10,"publish_time":"3小时前","readnum":6283,"replynum":26,"cat":{"name":"娱乐小报"},"author":{"name":"王子的喵-橘子编辑"}},{"id":55950,"urlroute":"juzi://article/detail/native?id=55950","title":"【猜猜TA是谁】他是\u201c娱乐圈变革人物\u201d；偶像是莱昂纳多！","pic":"http://images11.app.happyjuzi.com/news/201603/15/56e6e7d730c4b.jpg!ac2.nw.webp","icontype":8,"publish_time":"3小时前","readnum":6497,"replynum":32,"cat":{"name":"你谁啊你"},"author":{"name":"李哈哈-橘子编辑"}},{"id":56471,"urlroute":"juzi://article/detail/native?id=56471","title":"【今天穿啥】穿个拼色大衣做个\u201c色\u201d女孩","pic":"http://images11.app.happyjuzi.com/news/201603/14/56e6b16fb984f.jpg!ac2.nw.webp","icontype":0,"publish_time":"3小时前","readnum":2640,"replynum":0,"cat":{"name":"今天穿啥"},"author":{"name":"Jane-橘子编辑"}}]
     * page : 1
     * ts : 1458003995
     * list_dels : []
     * info_dels : []
     */

    private DataEntity data;

    public static RecommendContent objectFromData(String str) {

        return new Gson().fromJson(str, RecommendContent.class);
    }

    public static RecommendContent objectFromData(String str, String key) {

        try {
            JSONObject jsonObject = new JSONObject(str);

            return new Gson().fromJson(jsonObject.getString(str), RecommendContent.class);
        } catch (JSONException e) {
            e.printStackTrace();
        }

        return null;
    }

    public static List<RecommendContent> arrayRecommendContentFromData(String str) {

        Type listType = new TypeToken<ArrayList<RecommendContent>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public static List<RecommendContent> arrayRecommendContentFromData(String str, String key) {

        try {
            JSONObject jsonObject = new JSONObject(str);
            Type listType = new TypeToken<ArrayList<RecommendContent>>() {
            }.getType();

            return new Gson().fromJson(jsonObject.getString(str), listType);

        } catch (JSONException e) {
            e.printStackTrace();
        }

        return new ArrayList();


    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public DataEntity getData() {
        return data;
    }

    public static class DataEntity {
        private int page;
        private int ts;
        /**
         * id : 54854
         * urlroute : juzi://specialreport?id=54854
         * title : 橘子315打假：假脸、假唱、假电影、假包......一网打尽
         * pic : http://images11.app.happyjuzi.com/content/201603/15/56e7538b6fd83.jpg!ac2.nw.webp
         * icontype : 0
         * readnum : 5777
         * replynum : 0
         * cat : {"name":"生活"}
         * author : {"name":"程媛-橘子编辑"}
         * type : 13
         */

        private List<InfoEntity> info;
        /**
         * id : 56496
         * urlroute : juzi://article/detail/native?id=56496
         * title : 315鸡汤打假：是汤三分毒，拒汤保智商！
         * pic : http://images11.app.happyjuzi.com/news/201603/15/56e734e69214b.jpg!ac2.nw.webp
         * icontype : 4
         * type : 10
         * readnum : 4728
         * replynum : 4
         * cat : {"name":"生活"}
         * author : {"name":"仙人掌-橘子编辑"}
         */

        private List<ListEntity> list;
        private List<?> list_dels;
        private List<?> info_dels;

        public static DataEntity objectFromData(String str) {

            return new Gson().fromJson(str, DataEntity.class);
        }

        public static DataEntity objectFromData(String str, String key) {

            try {
                JSONObject jsonObject = new JSONObject(str);

                return new Gson().fromJson(jsonObject.getString(str), DataEntity.class);
            } catch (JSONException e) {
                e.printStackTrace();
            }

            return null;
        }

        public static List<DataEntity> arrayDataEntityFromData(String str) {

            Type listType = new TypeToken<ArrayList<DataEntity>>() {
            }.getType();

            return new Gson().fromJson(str, listType);
        }

        public static List<DataEntity> arrayDataEntityFromData(String str, String key) {

            try {
                JSONObject jsonObject = new JSONObject(str);
                Type listType = new TypeToken<ArrayList<DataEntity>>() {
                }.getType();

                return new Gson().fromJson(jsonObject.getString(str), listType);

            } catch (JSONException e) {
                e.printStackTrace();
            }

            return new ArrayList();


        }

        public void setPage(int page) {
            this.page = page;
        }

        public void setTs(int ts) {
            this.ts = ts;
        }

        public void setInfo(List<InfoEntity> info) {
            this.info = info;
        }

        public void setList(List<ListEntity> list) {
            this.list = list;
        }

        public void setList_dels(List<?> list_dels) {
            this.list_dels = list_dels;
        }

        public void setInfo_dels(List<?> info_dels) {
            this.info_dels = info_dels;
        }

        public int getPage() {
            return page;
        }

        public int getTs() {
            return ts;
        }

        public List<InfoEntity> getInfo() {
            return info;
        }

        public List<ListEntity> getList() {
            return list;
        }

        public List<?> getList_dels() {
            return list_dels;
        }

        public List<?> getInfo_dels() {
            return info_dels;
        }

        public static class InfoEntity {
            private int id;
            private String urlroute;
            private String title;
            private String pic;
            private int icontype;
            private int readnum;
            private int replynum;
            /**
             * name : 生活
             */

            private CatEntity cat;
            /**
             * name : 程媛-橘子编辑
             */

            private AuthorEntity author;
            private int type;

            public static InfoEntity objectFromData(String str) {

                return new Gson().fromJson(str, InfoEntity.class);
            }

            public static InfoEntity objectFromData(String str, String key) {

                try {
                    JSONObject jsonObject = new JSONObject(str);

                    return new Gson().fromJson(jsonObject.getString(str), InfoEntity.class);
                } catch (JSONException e) {
                    e.printStackTrace();
                }

                return null;
            }

            public static List<InfoEntity> arrayInfoEntityFromData(String str) {

                Type listType = new TypeToken<ArrayList<InfoEntity>>() {
                }.getType();

                return new Gson().fromJson(str, listType);
            }

            public static List<InfoEntity> arrayInfoEntityFromData(String str, String key) {

                try {
                    JSONObject jsonObject = new JSONObject(str);
                    Type listType = new TypeToken<ArrayList<InfoEntity>>() {
                    }.getType();

                    return new Gson().fromJson(jsonObject.getString(str), listType);

                } catch (JSONException e) {
                    e.printStackTrace();
                }

                return new ArrayList();


            }

            public void setId(int id) {
                this.id = id;
            }

            public void setUrlroute(String urlroute) {
                this.urlroute = urlroute;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public void setPic(String pic) {
                this.pic = pic;
            }

            public void setIcontype(int icontype) {
                this.icontype = icontype;
            }

            public void setReadnum(int readnum) {
                this.readnum = readnum;
            }

            public void setReplynum(int replynum) {
                this.replynum = replynum;
            }

            public void setCat(CatEntity cat) {
                this.cat = cat;
            }

            public void setAuthor(AuthorEntity author) {
                this.author = author;
            }

            public void setType(int type) {
                this.type = type;
            }

            public int getId() {
                return id;
            }

            public String getUrlroute() {
                return urlroute;
            }

            public String getTitle() {
                return title;
            }

            public String getPic() {
                return pic;
            }

            public int getIcontype() {
                return icontype;
            }

            public int getReadnum() {
                return readnum;
            }

            public int getReplynum() {
                return replynum;
            }

            public CatEntity getCat() {
                return cat;
            }

            public AuthorEntity getAuthor() {
                return author;
            }

            public int getType() {
                return type;
            }

            public static class CatEntity {
                private String name;

                public static CatEntity objectFromData(String str) {

                    return new Gson().fromJson(str, CatEntity.class);
                }

                public static CatEntity objectFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);

                        return new Gson().fromJson(jsonObject.getString(str), CatEntity.class);
                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return null;
                }

                public static List<CatEntity> arrayCatEntityFromData(String str) {

                    Type listType = new TypeToken<ArrayList<CatEntity>>() {
                    }.getType();

                    return new Gson().fromJson(str, listType);
                }

                public static List<CatEntity> arrayCatEntityFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);
                        Type listType = new TypeToken<ArrayList<CatEntity>>() {
                        }.getType();

                        return new Gson().fromJson(jsonObject.getString(str), listType);

                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return new ArrayList();


                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getName() {
                    return name;
                }
            }

            public static class AuthorEntity {
                private String name;

                public static AuthorEntity objectFromData(String str) {

                    return new Gson().fromJson(str, AuthorEntity.class);
                }

                public static AuthorEntity objectFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);

                        return new Gson().fromJson(jsonObject.getString(str), AuthorEntity.class);
                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return null;
                }

                public static List<AuthorEntity> arrayAuthorEntityFromData(String str) {

                    Type listType = new TypeToken<ArrayList<AuthorEntity>>() {
                    }.getType();

                    return new Gson().fromJson(str, listType);
                }

                public static List<AuthorEntity> arrayAuthorEntityFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);
                        Type listType = new TypeToken<ArrayList<AuthorEntity>>() {
                        }.getType();

                        return new Gson().fromJson(jsonObject.getString(str), listType);

                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return new ArrayList();


                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getName() {
                    return name;
                }
            }
        }

        public static class ListEntity {
            private int id;
            private String urlroute;
            private String title;
            private String pic;
            private int icontype;
            private int type;
            private int readnum;
            private int replynum;
            /**
             * name : 生活
             */

            private CatEntity cat;
            /**
             * name : 仙人掌-橘子编辑
             */

            private AuthorEntity author;

            public static ListEntity objectFromData(String str) {

                return new Gson().fromJson(str, ListEntity.class);
            }

            public static ListEntity objectFromData(String str, String key) {

                try {
                    JSONObject jsonObject = new JSONObject(str);

                    return new Gson().fromJson(jsonObject.getString(str), ListEntity.class);
                } catch (JSONException e) {
                    e.printStackTrace();
                }

                return null;
            }

            public static List<ListEntity> arrayListEntityFromData(String str) {

                Type listType = new TypeToken<ArrayList<ListEntity>>() {
                }.getType();

                return new Gson().fromJson(str, listType);
            }

            public static List<ListEntity> arrayListEntityFromData(String str, String key) {

                try {
                    JSONObject jsonObject = new JSONObject(str);
                    Type listType = new TypeToken<ArrayList<ListEntity>>() {
                    }.getType();

                    return new Gson().fromJson(jsonObject.getString(str), listType);

                } catch (JSONException e) {
                    e.printStackTrace();
                }

                return new ArrayList();


            }

            public void setId(int id) {
                this.id = id;
            }

            public void setUrlroute(String urlroute) {
                this.urlroute = urlroute;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public void setPic(String pic) {
                this.pic = pic;
            }

            public void setIcontype(int icontype) {
                this.icontype = icontype;
            }

            public void setType(int type) {
                this.type = type;
            }

            public void setReadnum(int readnum) {
                this.readnum = readnum;
            }

            public void setReplynum(int replynum) {
                this.replynum = replynum;
            }

            public void setCat(CatEntity cat) {
                this.cat = cat;
            }

            public void setAuthor(AuthorEntity author) {
                this.author = author;
            }

            public int getId() {
                return id;
            }

            public String getUrlroute() {
                return urlroute;
            }

            public String getTitle() {
                return title;
            }

            public String getPic() {
                return pic;
            }

            public int getIcontype() {
                return icontype;
            }

            public int getType() {
                return type;
            }

            public int getReadnum() {
                return readnum;
            }

            public int getReplynum() {
                return replynum;
            }

            public CatEntity getCat() {
                return cat;
            }

            public AuthorEntity getAuthor() {
                return author;
            }

            public static class CatEntity {
                private String name;

                public static CatEntity objectFromData(String str) {

                    return new Gson().fromJson(str, CatEntity.class);
                }

                public static CatEntity objectFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);

                        return new Gson().fromJson(jsonObject.getString(str), CatEntity.class);
                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return null;
                }

                public static List<CatEntity> arrayCatEntityFromData(String str) {

                    Type listType = new TypeToken<ArrayList<CatEntity>>() {
                    }.getType();

                    return new Gson().fromJson(str, listType);
                }

                public static List<CatEntity> arrayCatEntityFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);
                        Type listType = new TypeToken<ArrayList<CatEntity>>() {
                        }.getType();

                        return new Gson().fromJson(jsonObject.getString(str), listType);

                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return new ArrayList();


                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getName() {
                    return name;
                }
            }

            public static class AuthorEntity {
                private String name;

                public static AuthorEntity objectFromData(String str) {

                    return new Gson().fromJson(str, AuthorEntity.class);
                }

                public static AuthorEntity objectFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);

                        return new Gson().fromJson(jsonObject.getString(str), AuthorEntity.class);
                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return null;
                }

                public static List<AuthorEntity> arrayAuthorEntityFromData(String str) {

                    Type listType = new TypeToken<ArrayList<AuthorEntity>>() {
                    }.getType();

                    return new Gson().fromJson(str, listType);
                }

                public static List<AuthorEntity> arrayAuthorEntityFromData(String str, String key) {

                    try {
                        JSONObject jsonObject = new JSONObject(str);
                        Type listType = new TypeToken<ArrayList<AuthorEntity>>() {
                        }.getType();

                        return new Gson().fromJson(jsonObject.getString(str), listType);

                    } catch (JSONException e) {
                        e.printStackTrace();
                    }

                    return new ArrayList();


                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getName() {
                    return name;
                }
            }
        }
    }
}
